package treeviews.fileexplore3;

import java.io.File;

import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.control.TreeItem;
import treeviews.fileexplore2.PathItem;
import treeviews.fileexplore2.PathTreeItem;

public class FileTreeItem extends TreeItem<FileItem>{
	//文件不是一个目录,也不包含任何文件。缓存这一属性，因为经常调用开销大
	private boolean isLeaf;
	@Override
	public ObservableList<TreeItem<FileItem>> getChildren() {
		// TODO Auto-generated method stub
		
		return super.getChildren();
	}
	
	private FileTreeItem(FileItem pathItem) {
        super(pathItem);
    }

    public static TreeItem<FileItem> createNode(FileItem pathItem) {
        return new FileTreeItem(pathItem);
    }
	 private boolean isFirstTimeChildren = true;
     private boolean isFirstTimeLeaf = true;
     
     private ObservableList<TreeItem<File>> buildChildren(TreeItem<File> TreeItem) {
         
         return FXCollections.emptyObservableList();
     }

}
